<?php

# Simple SIAKAD
# Aplikasi Sistem Informasi Akademik untuk PT/PTS Indonesia
# 
# version 1.0
# class set_users
# file
# created Jan 13, 2013 9:52:28 AM
# 
# (c)2012, arif.laksito@gmail.com

if (!defined('BASEPATH'))
    exit('No direct script access allowed');
?>
<h3>Pengaturan User</h3>
<ul class="breadcrumb">
    <li>PMB Online <span class="divider">/</span></li>  
    <li>User <span class="divider">/</span></li>
    <li>Pengaturan User</li>
</ul>

<p>
<?php echo anchor('set/user_add','<i class=icon-plus-sign></i> Tambah Pengguna', 'class="btn btn-small btn-success"')?>
</p>

<table class="table table-condensed table-hover">
    <tr>
        <th>No</th>
        <th>Nama Pengguna</th>        
        <th>Username</th>        
        <th>Tgl Reg</th>        
        <th>Tgl Log</th>                
        <th>Status</th>
        <th></th>
    </tr>
    <?php $no = 1?>
    <?php foreach($usr as $d):?>    
    <tr>
    	<td><?php echo $no?></td>
    	<td><?php echo $d['nama_lengkap']?></td>
    	<td><?php echo $d['user_pengguna']?></td>    	
    	<td><?php echo mdate('%d %M %Y, %H:%i',mysql_to_unix($d['tanggal_reg']))?></td>
        <td><?php echo mdate('%d %M %Y, %H:%i', mysql_to_unix($d['tanggal_log']))?></td>
        <td>
            <?php echo ($d['status_pengguna']==1)?"Aktif":"Tdk Aktif"?>
        </td>
    	<td>
            <?php echo anchor('set/user_edit/'.$d['id_pengguna'],'<i class=icon-edit></i>')?>&nbsp;&nbsp;&nbsp;
            <?php echo anchor('set/reset_pass/'.$d['id_pengguna'],'<i class=icon-refresh></i>')?>
    	</td>
    </tr>		
    <?php $no++?>
    <?php endforeach?>
</table>    


